package com.ui.basic.command.trans;

import java.util.Date;
import java.util.List;

import org.springmodules.validation.bean.conf.loader.annotation.handler.NotEmpty;
import org.springmodules.validation.bean.conf.loader.annotation.handler.NotNull;

import com.common.basic.base.BaseCommand;
import com.common.basic.util.ComboValue;
import com.ui.basic.ibatis.model.trans.TblTCashtrans;

public class CommandCashtrans extends BaseCommand implements
		java.io.Serializable {

	private static final long serialVersionUID = -4421735903931680246L;
	
	private Long id;
	@NotNull
	private Long locId;
	private Long customerId;
	@NotEmpty
	private String transType;
	private String desc;
	@NotNull
	private Double amount;
	@NotNull
	private Date transDate;

	private List<ComboValue> locList;
	private List<ComboValue> custList;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getLocId() {
		return locId;
	}

	public void setLocId(Long locId) {
		this.locId = locId;
	}

	public Long getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Long customerId) {
		this.customerId = customerId;
	}

	public String getTransType() {
		return transType;
	}

	public void setTransType(String transType) {
		this.transType = transType;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public Date getTransDate() {
		return transDate;
	}

	public void setTransDate(Date transDate) {
		this.transDate = transDate;
	}

	public void setProperty(TblTCashtrans entity) {
		this.id = entity.getId();
		this.customerId = entity.getCustomerId();
		this.desc = entity.getDscp();
		this.locId = entity.getLocId();
		this.transType = entity.getTransType();
		this.transDate = entity.getTransDate();
		this.amount = entity.getAmount();
	}

	public void setLocList(List<ComboValue> locList) {
		this.locList = locList;
	}

	public List<ComboValue> getLocList() {
		return locList;
	}

	public void setCustList(List<ComboValue> custList) {
		this.custList = custList;
	}

	public List<ComboValue> getCustList() {
		return custList;
	}
}